home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 26.zip / BS1 part 26 / Aztec C v5.2a disk 4.adf / 204inc_h.lzh / dos / datetime.h next >
C/C++ Source or Header  |  1991-03-14  |  1KB  |  57 lines

  1. #ifndef DOS_DATETIME_H
  2. #define DOS_DATETIME_H
  3.  
  4. /*
  5. **    $Filename: dos/datetime.h $
  6. **    $Release: 2.04 $
  7. **    $Revision: 36.7 $
  8. **    $Date: 90/07/12 $
  9. **
  10. **    Date and time C header for AmigaDOS
  11. **
  12. **    (C) Copyright 1989,1990 Commodore-Amiga, Inc.
  13. **        All Rights Reserved
  14. **
  15. */
  16.  
  17. #ifndef DOS_DOS_H
  18. #include "dos/dos.h"
  19. #endif
  20.  
  21. /*
  22.  *    Data structures and equates used by the V1.4 DOS functions
  23.  * StrtoDate() and DatetoStr()
  24.  */
  25.  
  26. /*--------- String/Date structures etc */
  27. struct DateTime {
  28.     struct DateStamp dat_Stamp;    /* DOS DateStamp */
  29.     UBYTE    dat_Format;        /* controls appearance of dat_StrDate */
  30.     UBYTE    dat_Flags;        /* see BITDEF's below */
  31.     UBYTE    *dat_StrDay;        /* day of the week string */
  32.     UBYTE    *dat_StrDate;        /* date string */
  33.     UBYTE    *dat_StrTime;        /* time string */
  34. };
  35.  
  36. /* You need this much room for each of the DateTime strings: */
  37. #define    LEN_DATSTRING    16
  38.  
  39. /*    flags for dat_Flags */
  40.  
  41. #define DTB_SUBST    0        /* substitute Today, Tomorrow, etc. */
  42. #define DTF_SUBST    1
  43. #define DTB_FUTURE    1        /* day of the week is in future */
  44. #define DTF_FUTURE    2
  45.  
  46. /*
  47.  *    date format values
  48.  */
  49.  
  50. #define FORMAT_DOS    0        /* dd-mmm-yy */
  51. #define FORMAT_INT    1        /* yy-mm-dd  */
  52. #define FORMAT_USA    2        /* mm-dd-yy  */
  53. #define FORMAT_CDN    3        /* dd-mm-yy  */
  54. #define FORMAT_MAX    FORMAT_CDN
  55.  
  56. #endif /* DOS_DATETIME_H */
  57.